from applications.extensions import ma
from marshmallow import fields


# 沃尔玛短信记录的序列化类
class WalmartMsgResultOutSchema(ma.Schema):
    id = fields.Integer()
    batch_no = fields.Str()
    name = fields.Str()
    phone = fields.Str()
    msg_result = fields.Str()
    create_at = fields.DateTime()
    # 总记录数
    total = fields.Integer()
    # 中签数
    zhong_qian_num = fields.Integer()
